package main;
import java.io.Serializable;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Ira
 */
public class Trail implements Location, Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 5084903331671071572L;
	private int distance, progress; //the distance to the next landmark, and the progress to that point
    private Landmark nextLandmark;
    

	/**
     * Creates the trail and initializes its attributes with the supplied values
     * @param distance the distance to the next Landmark
     * @param next the next Landmark
     */
    public Trail(int distance, Landmark next){
        this.distance = distance;
        this.nextLandmark = next;
    }
    /**
     * Getter for the progress
     * @return the Progress
     */
    public int getProgress() {
		return progress;
	}

	/**
     * @return the distance
     */
    public int getDistance() {
        return distance;
    }

    /**
     * @param distance the distance to set
     */
    public void setDistance(int distance) {
        this.distance = distance;
    }
    
    public void setProgress(int progress) {
		this.progress = progress;
	}
	public void setNextLandmark(Landmark nextLandmark) {
		this.nextLandmark = nextLandmark;
	}

    /**
     * @return the nextLandmark
     */
    public Landmark getNextLandmark() {
        return nextLandmark;
    }
    
}
